﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>方案预览</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <LINK href="/_common/styles/global.css" type="text/css" rel="stylesheet">
    <LINK href="/_nav/menu.css" type="text/css" rel="stylesheet">
	<LINK href="/_grid/map_grid.css" type="text/css" rel="stylesheet">
	<LINK href="/_forms/styles/form.css" type="text/css" rel="stylesheet">
	<LINK href="/_nav/tabs.css" type="text/css" rel="stylesheet">
	<LINK href="/_nav/nav.css" type="text/css" rel="stylesheet">
	<LINK href="/_common/styles/select.css" type="text/css" rel="stylesheet">
	<script language="javascript" src="/_controls/settings.aspx"></script>
	<script language="javascript" src="/_controls/util/util.js"></script>
	<script language="javascript" src="/_controls/datetime/date.js"></script>
	<script language="javascript" src="/_controls/datetime/time.js"></script>
	<script language="javascript" src="/_controls/number/number.js"></script>
	<script language="javascript" src="/report/reportpublic.js"></script>	
    <script>
		var customparam;
		
		function win_onload()
		{		  
			document.getElementById("tdcustomparam").innerHTML = window.dialogArguments;			
		}
			
			
		//ok按钮
		function okOnClick()
		{
			if (checkCustomParam()==true)
			{
				var i ;
			    var tb;
			    var strReturnValue="";
			    tb = document.getElementById("tbcustomparam");
    			
			    if(tb)
			    {
				    for(i=0;i<tb.rows.length;i++)
				    {
				        if(tb.rows(i).cells[2].children[0].cells[0].children[0].className=="num")
				        {
    				     strReturnValue=strReturnValue+"^"+tb.rows(i).cells[2].children[0].cells[0].children[0].value.replace(/,/ig,"");	
				        }
				        else
				        {
					      strReturnValue=strReturnValue+"^"+tb.rows(i).cells[2].children[0].cells[0].children[0].value;	
					    }				   
				    }	
			    }
			    window.returnValue=strReturnValue.substring(1); 
				
				window.close();
			}
		}
		
	
		//检查变量是否有值
		function checkCustomParam()
		{
			var i ;
			var tb;
			tb = document.getElementById("tbcustomparam");
			
			if(tb)
			{
				for(i=0;i<tb.rows.length;i++)
				{	
					if(tb.rows(i).cells[2].children[0].cells[0].children[0].value=="")
					{
						alert("请输入完整参数信息!");
						return false;
					}					
				}
			}
			return true;
		}
		
	
    </script>
  </head>
  <body onload="win_onload()">
		<table style="table-layerout:fixed" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
			<tr height="5"><td></td></tr>
			<tr><td id="tdcustomparam"></td></tr>
			<tr height="30px">
				<td>
					<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
						<tr>
							<td width="10px"></td>
							<td >								
							</td>
						</tr>
					</table>
				</td>						
			</tr>
			<tr height="26px">
				<td>
					<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
						<tr>
							<td style="COLOR:red" id="tdAlert"></td>
							<td align="right">
								<input id="ok"  style="WIDTH:65px" onclick="okOnClick();" type="button" value="确 定"/>
								<input id="cancel"  style="WIDTH:65px" onclick="window.close();" type="button" value="取 消"/>
							</td>
							<td width="10px"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr height="20"><td></td></tr>
		</table>
  </body>
</html>
